# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

from ..facades import View


class ViewController:
    def __init__(self, template, data):
        self.template = template
        self.data = data

    def show(self):
        return View.render(self.template, self.data)
